{include file="public/head"/} 
<style>
  #click{
    width:100%;
    height:100%;
    background-color: rgba(0,0,0,0.5);
    position:fixed;
    left: 0;
    top: 0;
    z-index: 1000;
    display: none;

  }
</style>
  <body>
    <div id="click" onclick="aa()" ></div>
    <div class="x-nav">
      <span class="layui-breadcrumb">
        <a href="">后台管理</a>
        <a href="">日志管理</a>
        <a><cite>登陆日志</cite></a>
      </span>
      <a class="layui-btn layui-btn-small" style="line-height:1.6em;margin-top:3px;float:right" href="javascript:location.replace(location.href);" title="刷新">
        <i class="layui-icon" style="line-height:30px">ဂ</i></a>
    </div>
    <div class="x-body">
      <div class="layui-row">
        <form class="layui-form layui-col-md12 x-so"  method="get" action="#">
          
         
         
          <input type="text" name="name"  placeholder="用户" autocomplete="off" class="layui-input" value="{if isset($name)}{$name}{/if}">
         

          <button class="layui-btn"  lay-submit="" lay-filter="sreach"><i class="layui-icon">&#xe615;</i></button>
        </form>
      </div>
      <xblock>
        <span class="x-right" style="line-height:40px">共有数据：{$number} 条</span>
      </xblock>
      <table class="layui-table">
        <thead>
          <tr>
            <th></th>
            <th>用户</th>
            <th>登陆时间</th>
            
            
          </tr>
        </thead>
        <tbody>
          {foreach $list as $lis}
          <tr style="height:55px">
            <td>{$lis.id}</td>
            <td>{$lis.admin_name}</td>
            <td>{$lis.login_time|date="Y-m-d H:i:s"}</td>
          </tr>
          {/foreach}
        </tbody>
      </table>
      <div class="page">
        <div>
            {$list->render()}
        </div>
      </div>

    </div>
    <script>
      let a = document.getElementById("click")
      function mag(url){
          // console.log(123)

          a.style = "display:inline-block;"
          let b = `<img src="`+url+`" style="margin-left:20%;text-align:center">`
          a.innerHTML=b
      }
      function aa() {
          a.style = "display:none;"
      }
    </script>
    <script>
      var _hmt = _hmt || []; (function() {
        var hm = document.createElement("script");
        hm.src = "https://hm.baidu.com/hm.js?b393d153aeb26b46e9431fabaf0f6190";
        var s = document.getElementsByTagName("script")[0];
        s.parentNode.insertBefore(hm, s);
      })();
    </script>
  </body>

</html>